package com.lin.gulimall.cart.service;

import com.lin.gulimall.cart.vo.Cart;
import com.lin.gulimall.cart.vo.CartItem;


import java.util.List;
import java.util.concurrent.ExecutionException;


public interface CartService {

    Cart getCart() throws ExecutionException, InterruptedException;

    CartItem addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    List<CartItem> getUserCartItems();

    void deleteItem(Long skuId);

    void changeItemCount(Long skuId, Integer num);

    void checkItem(Long skuId, Integer check);

    CartItem getCartItem(Long skuId);


}
